<!--{subtemplate shop/sub/header}-->
<!--{subtemplate shop/sub/navigation_left}-->
<div class="row">
    <div class="detail_left">
    	<div class="row">
        	<div class="detail_box">
            	<h4><i class="head_box_style"></i><!--{$profile_title}--></h4>
                <div class="form_store">
                	<form action="shop.php?mod=store&ac=register&do=agree" method="post" onsubmit="return validate_form(this)">
                    	<fieldset>
                            <legend><!--{lang thong_tin_co_ban}--></legend>
                            <div class="fm-req">
                            	<label for="sid"><!--{lang danh_muc_nganh_nghe}--></label>
                                <select name="sid" id="sid">
                                	<option value="0"><!--{lang chon_danh_muc_nganh_nghe}--></option>
                                    <!--{loop $sCat $key $value}-->
                                    <option value="$key"<!--{if $key == $profile['sid']} selected="selected"{/if}-->>&bull; $value</option>
                                    <!--{/loop}-->
                                </select>
                                <i id="sid_alert" class="{if $post_erro['sid']}chk_erro{/if}" style="display:none">{lang erro_categories}</i>
                            </div>
                            <div class="fm-req">
                                <label for="shopname"><!--{lang ten_gian_hang}--></label>
                                <input type="text" id="shopname" name='shopname' value='$profile['shopname']' validate="{'minlen':'3', 'maxlen':80}" />
                                <p id="shopname_alert" class="{if $post_erro['shopname']}chk_erro{/if}" style="display:none">{lang erro_shop_name}</p>
                            </div>
                            <div class="fm-req">
                                <label for="authorname"><!--{lang nguoi_so_huu}--></label>
                                <input type="text" name='authorname' id="authorname" value="$profile['authorname']" validate="{'minlen':'7','maxlen':'30'}" />
                                <p id="authorname_alert" class="{if $post_erro['authorname']}chk_erro{/if}" style="display:none">{lang erro_author_shop}</p>
                            </div>
                            <div class="fm-req">
                                <label for="cardid_number"><!--{lang so_cmnd}--></label>
                                <input type="text" name='cardid_number' id="cardid_number" class="input_s" value="$profile['cardid_number']" validate="{'minlen':'9','maxlen':'12','onlyNumber':'yes'}" />
                                <p id="cardid_number_alert" class="{if $post_erro['cardid_number']}chk_erro{/if}" style="display:none">{lang erro_CMND_number}</p>
                            </div>
                            <div class="fm-req">
                                <label for="reg_date_number"><!--{lang ngay_cap_cmnd}--></label>
                                <input type="text" name='reg_date_number' id="reg_date_number" class="input_s" value="$gp['reg_date_number']" maxlength="10" validate="{'minlen':'8','maxlen':'10'}" onkeyup="dtval(this,event);" />
                                <p id="reg_date_number_alert" class="{if $post_erro['reg_date_number']}chk_erro{/if}" style="display:none">{lang erro_reg_date_CMND_number}</p>
                            </div>
                            <div class="fm-req">
                                <label for="province"><!--{lang noi_cap_cmnd}--></label>
                                <select name="province" id="province">
                                <!--{loop $provice $key $value}-->
                                	<option value="$key"<!--{if ($profile['cardid_issuer'] == $key)} selected{/if}-->>$value['name']</option>
                                <!--{/loop}-->
                                </select>
                            </div>
                        </fieldset>
                        <fieldset>
                            <legend><!--{lang thong_tin_lien_he_gian_hang}--></legend>
                            <div class="fm-req">
                                <label for="shopaddr"><!--{lang dia_chi_gian_hang}--></label>
                                <input type="text" id="shopaddr" name="shopaddr" value="$profile['shopaddr']" validate="{'minlen':'20','maxlen':'150'}" />
                                <p id="shopaddr_alert" class="{if $post_erro['shopaddr']}chk_erro{/if}" style="display:none">{lang erro_shopaddr_store}</p>
                            </div>
                            <div class="fm-req">
                                <label for="store_province"><!--{lang noi_ban_hang}--></label>
                                <select name="store_province" id="store_province">
                                <!--{loop $provice $key $value}-->
                                	<option value="$key"<!--{if ($profile['store_province'] == $key)} selected{/if}-->>$value['name']</option>
                                <!--{/loop}-->
                                </select>
                            </div>
                            <div class="fm-opt">
                                <label for="phonenumber"><!--{lang dien_thoai_cua_hang}--></label>
                                <input id="phonenumber" name="phonenumber" type="text" class="input_s" value="$profile['phonenumber']" />
                            </div>
                            <div class="fm-req">
                                <label for="email">Email</label>
                                <input id="email" name="email" type="text" value="$profile['email']" validate="{'email':'yes'}" />
                                <p id="email_alert"  class="{if $post_erro['bankid_issuer']}chk_erro{/if}" style="display:none">{lang erro_email}</p>
                            </div>
                            <div class="fm-opt">
                                <label for="store_about"><!--{lang gioi_thieu_gian_hang}--></label>
                                <textarea name="store_about" id="store_about" cols="10" rows="5"><!--{$profile['store_about']}--></textarea>
                                <p><!--{lang store_about_tips}--></p>
                            </div>
                            <div class="fm-req">
                                <!--{subtemplate shop/store/seccheck}-->
                            </div>
                        </fieldset>
                        <div id="fm-submit" class="fm-req">
                        	<input type="hidden" name="submit" value="true" />
                        	<input type="submit" name="Submit" value="{lang dang_ky_gian_hang}" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="detail_right">
        <!--{subtemplate shop/store/store_menu}-->
    </div>
    <div class="clear"></div>
</div>
<!--{subtemplate shop/sub/footer}-->